<template>
  <div class="dashboard-container">
        <img src="@/assets/logo.png" alt="logo" style="margin-top: 12px">
    <div class="dashboard-text">欢迎你: {{ name }}</div>
        <div class="dashboard-text">{{ ip }}</div>

    <img :src="avatar" width="50%" height="50%" class="avatar"/>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name','avatar','ip'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
